import mi from "../MI";
import UIMgr from "../view/UIMgr";
import EGUIMain from "./EGUIMain";

const { ccclass } = cc._decorator;


@ccclass
export default class Example extends cc.Component {
    protected start(): void {
        // // 屏幕适配
        // window.onresize = () => MiUtil.screenAdapter();
        // MiUtil.screenAdapter();
        
        // 设置主 UI, 打开主 UI 时会把 UI 打开记录清空
        mi.uiMain = EGUIMain.name;

        UIMgr.open(EGUIMain);
    }
}
